---
title: Shiny Button
date: 2024-05-24
description: A shiny button component with dynamic styles in the dark mode or light mode.
author: luis-codex
published: true
---

<ComponentPreview name="shiny-button-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx shadcn@latest add @magicui/shiny-button
```

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="shiny-button" />

<Step>Update the import paths to match your project setup.</Step>

</Steps>

</TabsContent>

</Tabs>

## Usage

```tsx showLineNumbers
import { ShinyButton } from "@/components/ui/shiny-button"
```

```tsx showLineNumbers
<ShinyButton>Shiny Button</ShinyButton>
```

## Props

| Prop        | Type              | Default | Description                                   |
| ----------- | ----------------- | ------- | --------------------------------------------- |
| `className` | `string`          | `-`     | The class name to be applied to the component |
| `children`  | `React.ReactNode` | `-`     | The content to be displayed inside the button |

## Credits

- Credit to [@luis-code](https://luis-code.vercel.app/)
